move_only_arr = []
park_move_arr = []
wf = open('ymy_result.dat', 'w')

def dataprocess():
    for i in range(len(move_only_arr)):
        pass

def corehandle() :
    cnt = 1
    while cnt < 8 :
        name = "ymy_specres" + cnt + ".dat"
        rf = open(name, 'r')
        filehandle(rf)

def filehandle(rf) :
    move_only = []
    park_move = []
    for line in rf.readlines() :
	    parts = line.split('\t')
	    park_cnt = (int)(parts[0])
	    move_cnt = (int)(parts[1])
	    success = (float)(parts[2])

	    delay = (float)(parts[3])
	    quality = (float)(parts[4])
	    hops = (float)(parts[5])
	    dist = (float)(parts[6])

	    adelay = (float)(parts[7])
	    aquality = (float)(parts[8])
	    ahops = (float)(parts[9])
	    adist = (float)(parts[10])

	    sdelay = (float)(parts[11])
	    squality = (float)(parts[12])
	    shops = (float)(parts[13])
	    sdist = (float)(parts[14])

	    res = {}
	    res['park_cnt'] = park_cnt
	    res['move_cnt'] = move_cnt
	    res['success'] = success
	    res['delay'] = delay
	    res['quality'] = quality
	    res['hops'] = hops
	    res['dist'] = dist
	    res['adelay'] = adelay
	    res['aquality'] = aquality
	    res['ahops'] = ahops
	    res['adist'] = adist
	    res['sdelay'] = sdelay
	    res['squality'] = squality
	    res['shops'] = shops
	    res['sdist'] = sdist

	    if i % 2 == 0 :
		    move_only.append(res)
	    else :
		    park_move.append(res)
	    i = i + 1

if __name__ == '__main__':
	pass